---
deprecationMessage: >-
  You can name your pipes only camelCase. If you try to use snake-case then your application will not compile. For prefix validation use
  pipe-prefix rule.
description: Enforce consistent case and prefix for pipes.
optionExamples:
  - '[true, "camelCase", "myPrefix"]'
  - '[true, "camelCase", "myPrefix", "myOtherPrefix"]'
  - '[true, "kebab-case", "my-prefix"]'
options:
  items:
    - enum:
        - kebab-case
        - attribute
    - type: string
  minLength: 1
  type: array
optionsDescription: |-

  * The first item in the array is `camelCase` or `kebab-case`, which allows you to pick a case.
  * The rest of the arguments are supported prefixes (given as strings). They are optional.
      
rationale: Consistent conventions make it easy to quickly identify and reference assets of different types.
ruleName: pipe-naming
type: style
typescriptOnly: true
layout: rule
title: 'Rule: pipe-naming'
optionsJSON: |-
  {
    "items": [
      {
        "enum": [
          "kebab-case",
          "attribute"
        ]
      },
      {
        "type": "string"
      }
    ],
    "minLength": 1,
    "type": "array"
  }
---